package com.bw.utils;

import lombok.Data;

/**
 * @author Monte
 * @author 644527030@qq.com
 * @author 知识改变命运，代码改变世界！
 * @date 2024年07月18日    15:00
 * @PackageName:com.bw.utils
 * @ClassName: JsonOutput
 * @Description HomeController
 */

@Data
public class JsonOutput<T> {

    private Integer code = 200;

    private T data;

    private String msg = "success";

    public JsonOutput(Integer code, T data, String message) {
        this.code = code;
        this.data = data;
        this.msg = message;
    }

    public JsonOutput(T data) {
        this.data = data;
    }

    public JsonOutput(Integer code, String message) {
        this.code = code;
        this.msg = message;
    }
}
